#pragma once

#include "scoped_ptr.h"
#include "dbghelp.h"
#include "Tlhelp32.h"

class ModuleWalker
{
public:
    ModuleWalker();
    virtual ~ModuleWalker();

    MODULEENTRY32 * Get();
    BOOL Start(DWORD nPid);
    BOOL Next();

private:
    ScopedHandle m_hSnapshot;
    MODULEENTRY32 m_oModuleEntry;
};